package com.newway.back.entity.approval;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.newway.back.enums.TaskStatusEnum;
import com.newway.common.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("approval_task")
public class ApprovalTask extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer taskId;
    
    private Integer instanceId;
    private Integer nodeId;
    private Integer approverId;
    
//    @EnumValue
//    private TaskStatusEnum status;  // 枚举见下方
    private String status;

    private LocalDateTime createdAt;
    private LocalDateTime processedAt;
}